package com.punai.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punai.customer.domain.CusExpenseCategories;
import com.punai.customer.domain.vo.CusLinkGkVo;
import com.punai.gk.domain.vo.SimplifyVo;

import java.util.List;

/**
 * 费用项类别Service接口
 *
 * @author zxw
 * @date 2022-12-04
 */
public interface ICusExpenseCategoriesService extends IService<CusExpenseCategories>
{
    /**
     * 查询费用项类别
     *
     * @param id 费用项类别主键
     * @return 费用项类别
     */
    public CusExpenseCategories selectCusExpenseCategoriesById(String id);

    /**
     * 查询费用项类别列表
     *
     * @param cusExpenseCategories 费用项类别
     * @return 费用项类别集合
     */
    public List<CusExpenseCategories> selectCusExpenseCategoriesList(CusExpenseCategories cusExpenseCategories);

    public List<CusExpenseCategories> selectListGk(CusExpenseCategories cusExpenseCategories);

    /**
     * 新增费用项类别
     *
     * @param cusExpenseCategories 费用项类别
     * @return 结果
     */
    public int insertCusExpenseCategories(CusExpenseCategories cusExpenseCategories);

    /**
     * 修改费用项类别
     *
     * @param cusExpenseCategories 费用项类别
     * @return 结果
     */
    public int updateCusExpenseCategories(CusExpenseCategories cusExpenseCategories);

    public int updateCategorieLinkGk(Long companyId, CusLinkGkVo cusLinkGkVo);

    public int deleteCategorieLinkGk(Long companyId, CusLinkGkVo cusLinkGkVo);

    /**
     * 批量删除费用项类别
     *
     * @param ids 需要删除的费用项类别主键集合
     * @return 结果
     */
    public int deleteCusExpenseCategoriesByIds(String[] ids);

    /**
     * 删除费用项类别信息
     *
     * @param id 费用项类别主键
     * @return 结果
     */
    public int deleteCusExpenseCategoriesById(String id);

    List<CusExpenseCategories> getExpenseCategoriesListByNoIds(Long companyId,List<String> noInIds);

    List<CusExpenseCategories> getByNameSearchCJ(String name,Long companyId,List<String> noInIds);

    int clearLinkGk(String id,Long companyId);

    List<SimplifyVo> getGkItemById(String id, String gkType);
}
